#pragma once

#include <QOpenGLWidget>
#include <QMouseEvent>
//#include <QOpenGLFunctions_4_0_Compatibility>
//#include <QOpenGLFunctions>
#include "ui_VisWidget.h"

class VisWidget : public QOpenGLWidget //, protected QOpenGLFunctions_4_0_Compatibility
{
	Q_OBJECT

public:
	VisWidget(QWidget *parent = Q_NULLPTR);
	~VisWidget();

	virtual void mousePressEvent(QMouseEvent* event);
	virtual void mouseReleaseEvent(QMouseEvent* event);
	virtual void mouseMoveEvent(QMouseEvent* event);

protected:
	void initializeGL() Q_DECL_OVERRIDE;
	void resizeGL(int w, int h) Q_DECL_OVERRIDE;
	void paintGL() Q_DECL_OVERRIDE;

private:
	Ui::VisWidget ui;
};
